<div id="sidebar" class="sidebar responsive">
    <ul class="nav nav-list">
        <li class="<?php echo $this->router->class == 'index' ? 'open' : '';?>">
            <a href="<?php echo site_url('admin/index') ?>">
                <span class="menu-text">系统首页</span>
            </a>
        </li>
		<li class="<?php echo $this->router->class == 'member' ? 'open' : '';?>">
            <a href="#" class="dropdown-toggle">
                <span class="menu-text"> 用户管理 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <ul class="submenu">
                <li class="<?php echo $this->router->class == 'member' && $this->router->method == 'memberList' ? 'active' : '';?>">
                    <a href="<?php echo site_url('admin/member/memberList');?>">
                        用户列表
                    </a>
                    <b class="arrow"></b>
                </li>	
                <li class="<?php echo $this->router->class == 'member' && $this->router->method == 'codeManager' ? 'active' : '';?>">
                    <a href="<?php echo site_url('admin/member/codeManager');?>">
                        用户ID管理
                    </a>
                    <b class="arrow"></b>
                </li>				 
            </ul>
            <b class="arrow"></b>
       </li>
       	<?php if($this->session->userdata["roleId"]==100 ){  ?>
		<li class="<?php echo $this->router->class == 'users' ? 'open' : '';?>">
            <a href="#" class="dropdown-toggle">
                <span class="menu-text"> 人员管理 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <ul class="submenu">
                <li class="<?php echo $this->router->class == 'users' && $this->router->method == 'salesList' ? 'active' : '';?>">
                    <a href="<?php echo site_url('admin/users/salesList');?>">
                        促销人员管理
                    </a>
                    <b class="arrow"></b>
                </li>
				 <li class="<?php echo $this->router->class == 'users' && $this->router->method == 'waitersList' ? 'active' : '';?>">
                    <a href="<?php echo site_url('admin/users/waitersList');?>">
                        客服人员管理
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
            <b class="arrow"></b>
        </li>
  		<?php } ?>
        
        <li class=" <?php echo $this->router->class == 'password' ? 'active' : '';?>">
            <a href="<?php echo site_url('admin/password');?>" >
                <span class="menu-text"> 修改密码 </span>
            </a>
            <b class="arrow"></b>
        </li>
    </ul>
</div>